package com.size.mall.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.size.mall.mallapi.entity.Catalog2;
import com.size.mall.mallapi.service.Catalog2Service;
import com.size.mall.mapper.Catalog2Mapper;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author yin
 * @since 2019-10-24
 */
@Service
public class Catalog2ServiceImpl extends ServiceImpl<Catalog2Mapper, Catalog2> implements Catalog2Service {

    @Override
    public List<Catalog2> getCatalog2(String catalog1Id) {

        Wrapper<Catalog2> wp = new QueryWrapper<>();
        ((QueryWrapper<Catalog2>) wp).eq("catalog1_id", catalog1Id);
        return this.list(wp);

    }
}
